package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 班级专业成绩学期课程查询DTO
 *
 * @author: yangyongchuan
 * @create: 2020年09月01日 23:44
 */
@ApiModel("班级专业成绩学期课程查询DTO")
@Data
public class ClassUserScoreSemesterQueryDTO implements BaseDTO {
	private static final long serialVersionUID = 6858151070072837677L;

	/**
	 * 班级专业成绩学期课程ID集合
	 */
	@ApiModelProperty(value = "班级专业成绩学期课程ID集合,删除接口使用")
	@NotNull(message = "课程ID集合不能为空", groups = {Delete.class})
	private List<Integer> cussIdList;

	/**
	 * 归属组织ID
	 */
	@ApiModelProperty(value = "组织ID")
	@NotNull(message = "组织ID不能为空", groups = {Delete.class, ListPage.class})
	private Integer orgId;

	/**
	 * 班级ID
	 */
	@ApiModelProperty(value = "班级ID")
	@NotNull(message = "班级ID不能为空", groups = {Delete.class, ListPage.class})
	private Integer classId;

	/**
	 * 学期名称
	 */
	@ApiModelProperty(value = "学期名称，查询单个学期名称使用", example = "第一学期")
	@NotNull(message = "学期名称不能为空", groups = {Detail.class})
	@NotEmpty(message = "学期名称不能为空", groups = {Detail.class})
	private String semesterName;

}
